<?php echo $this->Form->create('Obligation'); ?>
<fieldset>
    <legend><?php echo __('Adicionar Obligación'); ?></legend>
    <?php
    echo $this->Form->input('Obligation.descripcion', array('label' => 'Obligación', 'class' => 'txtarea'));
    echo $this->Form->hidden('Obligation.contract_id');
    ?>
</fieldset>
<?php echo $this->Ajax->submit('Guardar', array('url' => array('controller' => 'Obligations', 'action' => 'add', $this->data['Obligation']['contract_id']), 'update' => 'content', 'indicator' => 'loading'));
?>
<?php echo $this->Form->end(); ?>
<br><br>
<?php echo $this->Ajax->link($this->Html->image("regresar.gif", array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar')), array('controller' => "Obligations", "action" => "index", $this->data['Obligation']['contract_id']), array('update' => 'content', 'indicator' => 'loading', 'escape' => false), null) ?>